package com.zzh.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * @author wenrouyue
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "users")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User implements Serializable {

    private static final long serialVersionUID = -40356785423868312L;

    @TableId
    private Integer id;

    private String username;

    private String password;

    private String email;

    private Integer points;

    private String ip;

    @TableLogic
    private String isDel;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
